<%@ tag language="java" pageEncoding="UTF-8" body-content="empty" trimDirectiveWhitespaces="true"%>
<%@ attribute name="id" type="java.lang.String" required='true'	description="富文本编辑器的id"%>
<%@ attribute name="basePath" type="java.lang.String" description="上传图片的控制器路径" %>
<%@ attribute name="bodyClass" type="java.lang.String" description="副文本框的样式，默认article-content" %>
<%@ attribute name="allowFileManager" type="java.lang.Boolean" description="副文本框的样式，默认true" %>	
<%@ attribute name="height" type="java.lang.String" description="编辑器的高度，只能设置px，比TEXTAREA输入框样式表高度优先度高,默认300px" %>
<%@ attribute name="width" type="java.lang.String" description="编辑器的宽度，可以设置px或%，比TEXTAREA输入框样式表宽度优先度高" %>
<%@ attribute name="allowImageRemote" type="java.lang.Boolean" description="是否显示网络图片，默认false" %>
<%@ attribute name="name" type="java.lang.String" required="false" description="定义textarea的name属性"%>
<%@ attribute name="inpName" type="java.lang.String" required="false" description="定义用于提交富文本编辑器的text内容的input的name"%>	
<%@ attribute name="inpId" type="java.lang.String" required="false" description="定义用于提交富文本编辑器的text内容的input的Id"%>	
<div class="richText"></div>		
<script type="text/javascript">
(function(){
	var bodyClass = "${bodyClass}"==""?"article-content":"${bodyClass}";
	var id = "${id}"==""?"":"${id}";
	var name = "${name}"==""?"":"${name}";
	var inpName = "${inpName}"==""?"":"${inpName}";
	var inpId = "${inpId}"==""?"":"${inpId}";
	var allowFileManager = "${allowFileManager}"==""? true : "${allowFileManager}";
	var height = "${height}"==""? "300px" : "${height}";
	var width = "${width}"==""? "100%" : "${width}";
	var allowImageRemote = "${allowImageRemote}"==""? false : "${allowImageRemote}";
	//时间
	
	Logger.warn("正在执行 add  editor");
	var ktag = new TagSupport({
		"id":"${id}",
		"basePath":"${basePath}",
		"bodyClass":bodyClass,
		"allowFileManager":allowFileManager,
		"height":height,
		"width":width,
		"allowImageRemote":allowImageRemote,
		"inpName":inpName,
		"inpId":inpId,
		"id":id,
		"name":name
	});
	ktag.kindeditor();
})();
</script>